package org.example.com.atguigu.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;


@AiService(
        wiringMode = AiServiceWiringMode.EXPLICIT,
        streamingChatModel = "qwenStreamingChatModel",
        chatMemoryProvider = "chatMemoryProviderXiaoHua",//不同用户
        tools = "appointmentTools", //tools配置
        contentRetriever = "contentRetrieverXiaoHuaPincone" //配置向量存储

)

public interface XiaoHuaAgent {
    @SystemMessage(fromResource = "xiaohua.txt")
   Flux<String>chat(@MemoryId Long memoryId, @UserMessage String message);

}
